var div = document.getElementById("box").getElementsByTagName("div");
setInterval(function(){
    for (var i = 0; i < div.length; i++) {
        div[i].style.left = Math.floor(Math.random()*480)+"px";
        div[i].style.top = Math.floor(Math.random()*480)+"px";
    }
}, 500);